package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 技术联系人表
 * </p>
 *
 * @author sy
 * @since 2023-07-05
 */
@Getter
@Setter
@TableName("dragon_technical_person")
public class TechnicalPerson implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 技术联系人名称
     */
    @NotNull(message = "名称不能为空")
    private String technicalName;

    /**
     * 技术联系人手机号
     */
    @NotNull(message = "手机号不能为空")
    @Length(min = 11, max = 11,message = "手机号长度11位")
    private String technicalPhone;

    /**
     * 技术联系人职位
     */
    private String technicalPosts;

    /**
     * 技术联系人微信
     */
    private String technicalVx;


}
